RESTful API with OAuth2, following http://scottksmith.com/blog/2014/05/05/beer-locker-building-a-restful-api-with-node-crud/