A dual (indexedDB and REST) sync adapter for Backbone.js