Changed auth flow, added Logout link to header.