pep8 entities_api.
Fail gracefully when an OAuth provider is not 
configured.
Refactor OAuth process to hide non-configured 
endpoints.