SERVER-15535 Drop temp collections when exiting drain mode.

Also, introduce an OperationContext implementation for use in replication tests that
is compatible with the lock manager. This obviates the need for the GlobalSharedLockAcquirer,
but does not yet remove it.
SERVER-13635: add a method to RecordStore and Collection to lookup by DiskLoc that might not exist
SERVER-13635: fix cloner using system.namespaces
SERVER-14425 Fix a bug in the Lock Manager for the conversion path

The mode counts were not being maintained correctly and this was
introduced by commit 22b368a74b36896de6b164c55cd4b3b9ca562bb2.

This change also adds additional assertions to help catch such issues in
the future.
SERVER-15098: no sync source + unauth = Recovering
SERVER-15477: check hasData during initial quorum check
SERVER-15616 Disallow renaming system.indexes
SERVER-15535 On force reconfig, bump the supplied config version by a large-ish random number.

This is for consistency with the legacy implementation, and to increase the
likelihood that if several nodes take force reconfigs, the nodes recognize them
to be different configurations, and choose one as the winner.
SERVER-15535 Close all connections when removed from a replica set.

Also, do not dassert if a node receives a position update for a RBID for which
it has no handshake information.  This can legitimately happen if the sender of
the handshake hasn't yet noticed that it has been removed from the replica set.
SERVER-15620 Must hold ReplicationCoordinatorImpl::_mutex while scanning the waiter list.
SERVER-15453: Fix privileges for actions "listIndexes" and
"listCollections" vis-a-vis builtin roles.
SERVER-15535 support for write concern internal tags
SERVER-15477: initialize new fields correctly
SERVER-13635: move journal test to mmapv1 suite
Revert "SERVER-15375 remove initShardVersion"

This reverts commit 42d276dace045fe888cdb45f00dc0bf97fa13bd5.

Need to handle non-versioned cases for GLE and auditing
SERVER-15535 Move where we check for secondaries being ahead of the primary
SERVER-15594 Make readIndex.js test storage engine independent.
SERVER-15535 Refactor jstests/replsets/rollback.js to use bridging.
SERVER-15535 Eliminate jstests/replsets/sync1.js, whose functionality is covered elsewhere.
SERVER-15527 Explain cleanup: use getPlanSummary/indexName helpers

No functional changes.