Moved imports to manage.py and wsgi.py.

Reviewed in https://github.com/edx/edx-platform-private/pull/10.