feat(ngResource): Add transformParams to the actions object

transformParams provides a public API to serialize params for an action.
Before if you wanted to a custom serialization for a complex datatype
you would have to transform the object higher in the stack, with this
change you can keep your logic at the REST level.

Closes #5521