add logout tab and related functionality
Merge pull request #1 from BaBuDe/pageFlow

add logout tab and related functionality
authentication through states
Remove obsolete checkSession() call
updated authentication structure and page flow