Merge pull request #81 from mbucknell/cleanup

Cleaned up some code and changed the logout to use POST.
Corrected the test to change GET to POST for logout