fix($resource): Always return a resource instance when calling class methods on resources.
Previously, calling `MyResource.save(myResourceInstance)`returned
a promise, in contrast to the docs for `$resource`. However,
calling `MyResource.save({name: 'Tobias"})`already correctly
returned a resource instance.
Fixes #4545.
Closes #5061. T
Tobias Bosch committed
f6ecf9a3c9090593faf5fa50586c99a56b51c776
Parent: a4e6d96