Ported part of the rewrite test suite over from CouchDB, which found small bugs in the rewrite, list & update plug-ins. Some minor other changes.
Ported part of the rewrite test suite over from CouchDB, which found small bugs in the rewrite, list & update plug-ins. Some minor other changes.

pouchdb/pouchdb-server,pouchdb/pouchdb-server