Merge branch 'master' of https://github.com/daleharvey/pouchdb into 802-adding-purge