SERVER-10532 fix osx, rhel compile, no need for explicit copy constructor in BatchItemRef
SERVER-10829 windows mongod now prints its flavor to log
SERVER-9515 Provide function for generating BSON representation of a role
SERVER-10034 Invalid --pidfilepath no longer silently ignored

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
SERVER-10868 Step 1: Make an RAII TempDir class for unit tests

Prep for SERVER-10868: move external sort tests out of dbtests
SERVER-10868 Step 3: Pass the temporary directory into Sorter

This removes the direct link-time dependency on dbpath from Sorter and
the aggregation DocumentSources that use it.

After this commit dbpath can once-again be removed from mongos. Not
making that change now however to avoid colliding with Shaun's work.

Prep for SERVER-10868: move external sort tests out of dbtests
SERVER-10868 Move Sorter tests out of dbtests to a unit test
SERVER-9515 Move getBSONForRole into AuthorizationManager
revert checkAndInsert validation
SERVER-1534 $min/$max update mods
SERVER-10911: Add $currentDate update modifier
SERVER-10518: disallow _id field arrays and undefined
SERVER-10567 Handling rsHealthPoll/PRIMARY stepdown race
SERVER-10946 Fixed user acquisition for $external
SERVER 10950 Fixed C++11 build failure

Replaced implicit boolean conversion with call to ios.good()

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
SERVER-10903 Fix negation of unsigned
SERVER-7455 x.509 cluster auth tests and expanded use-ssl passthrough
SERVER-10823 fix buildbot breakage

setOtherPrimary() asserts that we are not the primary
msgCheckState() was making sure the node isn't primary before calling setOtherPrimary()
but it was comparing members instead of just member ids
due to recent changes to reconfig (by which, a reconfig may not reset all connections and cause an election on tag changes), there is a race condition with the members
but the member id should be consistant and safe
SERVER-10969 Removing x.509 cluster auth tests
SERVER-10471 enumerate indices w/array operators correctly, clean up and comment planner