Conflict-free collaborative editing for PouchDB