Moved oauth code from connection module
Refactored oauth_options method