Fixes for AutoAPI (allows for AngularJS $resource)