cleans up google oauth code following railscast example