Made _logic a param
The _logic parameter is added in base.py to make this as small and
non-intrustive change.
Patch by: Sverre Rabbelier
A list of bugs is available in the Google App Engine SDK project on Google Code.Please visit http://code.google.com/p/googleappengine for more details.