(#2342) - WIP - fix update_seq

Current status is that I've added update_seq and doc_count tests to most of test.replication.js, such that the tests all pass in http-http.  I've also fixed the more obvious mistakes in the three adapters, but there are still a few failing tests.