Resource AngularJS module suitable for bundling with Browserify or Webpack