Move auth logic from /auth/index.html to /
and enhance a bit with jQuery
Switch to using non-popup OAuth2 workflow by:
- replacing use of gapi.auth.authorize() with window.location navigation to Google's /o/oauth2/auth page
- serving up an /oauth2callback endpoint called by Google OAuth when authorization is granted that acquires the actual auth token
- moving client-side config variable rendering from /js/config.js to /js/oauth2-config.js and /js/google-analytics-config.js
Also:
- removed the authorize-button markup in index.html, having jQuery dynamically create it instead