Adds TestPushPurgedDoc.
Fixes NRE in replication when content is null (which should only happen inside an error handler, as it is in this case).
Removes some references to Sharpen types, like CountdownLatch.
Cleans up MockHttpHandler to be more idiomatic .NET.