fix($resource): pass transformed value to both callbacks and promises

Closes #3817
Merge branch 'master' of https://github.com/angular/angular.js
componentizd!