Template of a RESTful app using OAuth 2.0