refact(rest-mixin): require rest mixin instead of

copying over code to pouchdb mixin