Fix disappearing logout link

Also add header link when user is already logged in and is reloading
the browser which does not change the session

Closes COUCHDB-2357