Persistent replications in PouchDB, a la CouchDB's _replicator