(#2054) - implement PouchDB.defaults

This also fixes several bugs in how opts.db
is used in leveldb.js, namely:

1. opts.db only worked in the browser, not Node
2. the leveldown object was overriden globally
3. databases with the same names but different backends collided