TOOLS-450 some dumprestore js tests query system.indexes or system.namespaces directly

Closes #875

Signed-off-by: Benety Goh <benety@mongodb.com>
SERVER-16429 Add ScopedTransactions to places which were missing it
SERVER-16429 Get rid of assertWriteLocked which was doing incomplete check
SERVER-15743 Fixed size_t overflow in SaslClientSession::setParameter

Closes #872

Signed-off-by: Benety Goh <benety@mongodb.com>
SERVER-16458 Add lock manager perf tests to dbtests perf

Closes #874

Signed-off-by: Benety Goh <benety@mongodb.com>
Revert "SERVER-16429 Get rid of assertWriteLocked which was doing incomplete check"

This reverts commit 77f3100bc8753055224abb0c6439fc506eeb02de.
SERVER-16500 Change the meaning of getReplicationMode() to be constant after start up.

Previously, ReplicationCoordinator::getReplicationMode() returned modeNone if
the settings object indicated the node was part of a replica set, but no valid
replica set configuration had yet been discovered.  With this change, the
settings object is the sole determinant of the return value of
getReplicationMode().  Callers that wish to know if a replica set member is
initialized should instead check ReplicationCoordinator::getMemberState().  If
the value is RS_STARTUP, then the node is not initialized with a replica set
config.

This has the side-effect of removing the mutex in ReplCoordinatorImpl from the
code path for this method.
TOOLS-450 Revert restorewithauth.js

This partially reverts commit bf834456c3e5a02fbe6fed340563a3c5fa548e4c
SERVER-16455 do not start election while in hbreconfig state
TOOLS-494: fix restorewithauth.js and TOOLS-497: fix dumprestore_auth.js
SERVER-16481 Replace internalShardingMaxSplitPointsPerOperation
SERVER-16503 take correct lock for index builds during replication apply ops
SERVER-15744 Implement oplogHack for Rocks

Squashed:
- Disable Iterator for repair
- Fix assertion in capped_id.js

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
SERVER-16273 createIndex is not sent to shards with no chunk for ns
SERVER-16499 Fix sh.getBalancerLockDetails

sh.getBalancerLockDetails was returning state instead of the whole lock object

Closes #873

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
SERVER-16508 Add tests for mixed version/storage engine replica sets.

Closes #879

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
SERVER-16111 improve style
SERVER-16220 prevent arbiters from warning about most recently applied optime on startup
SERVER-16509 remove slow2/replsets_prefetch_stress.js
SERVER-16511 improve stability of multiVersion/w_majority_change.js