Fix for angular-resource with TS 1.1

This is a fix for angular-resource for the TypeScript 1.1 compiler.  Works fine for 1.0 also.  TypeScript 1.0 didn't seem to mind "forgetting to call new" - even though this isn't actually required by the library.