Change implementation for gmail. Using OAuth2 instead of gdata