Automated file caching for Backbone.js apps