side effects in manage.py are needed by wsgi/zamboni.py (bug 1050155)

Fixes [bug 1050155](https://bugzilla.mozilla.org/show_bug.cgi?id=1050155)

Moving all the side effects in `manage.py` under the `if '__name__' ==
'__main__'` breaks wsgi/zamboni.py.