Backbone.js sync for CouchDB