Update angular resource definitions, and add injector definition

Update angular resource definitions, and add injector definition.

Some breaking changes here but it is good for everyone involved.