CSHARP-589: Refactor some logic from MongoCollection and other classes into a set of Operations classes.
Fix unit test that was failing on replica sets due to replication lag.
Fixed some more problems when running unit tests against replica sets.