Rob js refactor

Google OAuth and YouTube API methods refactored into separate namespaces.