Implement login/logout and redirect to login for all urls
Merge branch 'better-loggin' into caching-refactor