added a logout button, as well as cleaned up some code and sessions is pretty much working i think.
Merge remote-tracking branch 'origin/master' into My-Citations-Dashboard

Conflicts:
	legal/main.py
	legal/server/subapplications/dbConnector.py