Major simplification by using Django's built in remote user authentication framework.
Remove the DEV_MODE flag from the framework.
Testing should require a mock HTTP endpoint for the session request.
Reinstate simpler dev mode flag for the moment.