Namespaced all sessions and cookies properly and then purged them in the logout function

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>