allows middleware to be added to Backbone.Sync