Add Trends resources and OAuth resources.
add oauth2 endpoint.