Improved login session system
* Clicking the back button after being redirected due to access restrictions no longer puts you on the restricted page.
* At the beginning of the page load, the account/me model is requested only once rather than three times.
* When landing on the /login page while already logged in on the server, a redirect takes you to the app right away.