Adjusting type angular.resource type definitions and tests to better reflect actual interface (particularly promises)