Get logged in status from base HTML template

By having the server embed the loggedIn status into the base template this saves us a GET call.