Almost all the unit tests pass!

The only holdout is ReplicationWithEncoding -- looks like a
concurrency issue with the main thread not committing the database
changes before the push replicator starts, so it doesn't see them.
Using CBForestDB transactions. All unit tests now pass!