Ability to configure the encoding/decoding data for $resource

Right now it seems like the $resource module excepts the data from the REST API call to be returned the content of the response however sometimes it might not be formatted that way.  What I have done is instead of getting the data from the responce.data automatically, it is now a configurable function that defaults to the current process.

There is now a 4th optional parameter for $resource() that is the function used to parse for the data of the response so that if the REST API you are working with has the data formatted slightly (or completely) different than excepted, it is very easy to still use the $resource module.

An example of a REST API that has a different response the what $resource right now except for be the Jira REST API.

I have already submitted the electronic CLA.