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