An AngularJS resource to interact with TastyPie REST APIs