Elegant logout commit

solved the problem of elegant logout. Now hitting the back button after
logout wont take you back to the page or a cached copy of the page,
instead it will take you to login and show a session end error message.
Next commit - Remember me and other cookie related features.