Revert "SERVER-15062 change redundant branch to invariant"

This reverts commit 0331a4b573409272919aa0bccf4f341455e19985.
SERVER-15396 added --repair option to mongo shim
SERVER-14835 Fixed alignment check in log file for PPC64

Closes #769

Signed-off-by: Benety Goh <benety@mongodb.com>
SERVER-14835 removed PPC64-specific value for AlignedBuilder::Alignment. reject zero block size from ioctl()
SERVER-14668 Fix compile break on 32-bit and Clang

Introduced by commit e671a2c31f6b555254e4ad8265f66578f8c805aa
SERVER-15369 Explicitly write zeros when creating ns files
SERVER-15381 Allow shutdown() to be called on the ReplicationCoordinator before startReplication()
Revert two commits

"SERVER-14668 Fix compile break on 32-bit and Clang": bcea622441dc2f689c4651981f9d7929a1dd75b3

"SERVER-14668 Move getIndexSizeForCollection to be a method on Collection": e671a2c31f6b555254e4ad8265f66578f8c805aa
SERVER-15233 allow plan cache commands to run on secondaries is slaveOk explicitly set to true
SERVER-14668: Replace uses of DBWrite lock with DBLock

Make the lock mode explicit as preparation to move some to intent locks,
and use proper database name instead of full namespace string to lock
databases.
SERVER-14713 Specify sslAllowInvalidCertificates flag in sslSpecial tests to pass with mongo shell changes
SERVER-14668 Use ensureShardVersionOKOrThrow for collection shard version checking

This commit exposes a SendStaleConfigException-based method for checking
shard staleness. This will be used in all methods (other than the batch
executor).

Also clean-up some unnecessary includes.
SERVER-14668 Move getIndexSizeForCollection to be a method on Collection
SERVER-15397 don't use strict string comparison for documents imported from csv.

Closes #797

Signed-off-by: Benety Goh <benety@mongodb.com>
SERVER-15096 added modes to mongoshim. also added JS test and a number of test-related options.
SERVER-14713 fix false positives for ssl tests
SERVER-15089 Add new Applier class and remove theReplSet references from BackgroundSync
SERVER-15411 fix uninitialized char array in topology coordinator
SERVER-15089 initialize member variable
SERVER-15089 separate h fields for lastFetched vs. lastApplied