Added logout functionality

Touched a lot of files, all the templates, and views.py and urls.py