Directory API based on AngularJS resources and Grunt redirection (.json)