(#38) - implement in-memory option

Rebased on top of the other PRs for convenience.

Also requires https://github.com/pouchdb/express-pouchdb/pull/50 in order to work.