Fixed parsing errors (trailing commas)
Fixed Google authentication flow according to Google documentation : https://developers.google.com/accounts/docs/OAuth2WebServer#handlingtheresponse