Made the lambda statement more resistant to errors

Made the statement better

pylint fix

Accidently left off parameter

Removed logout
Merge pull request #758 from edx/jonahstanley/fix-courseteam-test

Made the lambda statement more resistant to errors
Centralize startup code, and execute in all contexts

Inspired by: http://eldarion.com/blog/2013/02/14/entry-point-hook-django-projects/
Moves startup code to lms.startup and cms.startup, and calls the startup
methods in wsgi.py and manage.py for both projects.