Initial import
Extract ajax call to authenticator object
Track signed-in state on authenticator object
Restore signed-in state on each request
Handle sign-out action
Block all transitions that require authentication
Add error handling for unauthorized ajax requests
Transition directly in beforeModel rather than falling through to error
Add response handler to set new CSRF tokens
Cleanup