Move OAuth related code to oauth2
Migrate protocol to data