Fix CSRF tokens, clean exit on KeyboardInterrupt, pep8 more.
Merge pull request #5 from Liamraystanley/master

Fix CSRF tokens, clean exit on KeyboardInterrupt, pep8 more.