Boilerplate for RESTful APIs with Oauth authorization.