implemented get and update with $resource.
post is not complete, failing on server side.
delete is not implemented yet.