ngResource: Add a $set function on Resource.prototype

This is to enable setting of multiple attributes on an Resource instance. I want to be able to update all the attributes on a resource instance when I get a pusher event with the JSON entity.