playing CRUD with $resource in a service