restructuring Oauth libraries