AutoAPI fixes for use with AngularJS

Two minor adjustments to make AutoAPI more palatable to AngularJS's $resource.