This avails all the object-orientation of Angoolar to ngResource. This defines some helper base classes that allow you to use ngResource with instances of resource classes, rather than plain objects.