refactored ng-resource generator to use a single JSON file for local resource data