redirect in same window and store auth state in cookie
enable html5mode for URL writing
redirect to an auth route
add the base for the URLs
needs to go as early as possible
force all URLs to end with a / and fix AuthController name
middleware for html5 redirects
no need to use the global settings and wait on watchers
different subroutes for callback + failure
read the error in
pass the error through to a failed route
flip CORS table