finished basic logout functionality
added logout link to the main page
Merge branch 'logout'