Moved Google auth code to OO JS library.