(#39) - implement replication history

This PR, along with all my other ones, brings the PouchDB test suite up to 100%.  So at that point we'll be able to merge https://github.com/pouchdb/pouchdb/pull/2282.