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