Google OAuth refactor

Errors in included JS code from Google would cause errors in some versions of Firefox and IE. This branch refactors the Google OAuth process to follow the steps documented at https://developers.google.com/api-client-library/php/guide/aaa_oauth2_web