Register an app for OAuth2