Added a logout() method.

Prevents stale sessions being left on the server when not using cookies.

Based on code by user gofetch (https://github.com/gofetch)
Merge pull request #9 from emjaytee404/logout

Added a logout() method.