(daleharvey/pouchdb#1387) - prototype based plugin api
(#56) - tests working with promise based pouch
(daleharvey/pouchdb#1387) - pass object instead of 2 arguments for plugins