angular.js module extending ngResource by some caching functionality, even going so far to keep the data offline in the browsers' localStorage