SERVER-12615 Fix size calculation in JSReducer::_reduce

The old calculation didn't consider the size of the numeric-string fieldnames
in arrays. This error accumulated with each value added to the array. While
the new calculation doesn't consider the size of the current fieldname, it is
ok because it prevents the error from accumulating and we have plenty of room
between the User and Internal max sizes.
Minor typo in sock.cpp debug msg

"Dump"->"dump"

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
SERVER-13249 adjust timeout for reInitiate

Since there is a 15 second polling delay when there are no visible primary/secondary nodes,
reInitiate was coming close to timing out in many cases.
SERVER-12095 Update project description in Linux packaging text

This change makes packaging text more consistent between rpms
and debs, as well as bringing the text up to date with more
recent verbiage.
SERVER-13163/SERVER-13165 Refactor implementation of insert write command in mongod.

The goal of the refactoring is to clarify the control flow of the batch
execution of inserts, and in so doing to cleanly handle PageFaultExceptions,
properly handle demotion to secondary, correctly profile individual document
insertions within the batch, and correctly attribute lock hold and acquisition
time to those individual insertions.

It is also intended that this refactoring will resolve memory leaks in the
insert code path, by more carefully tracking ownership of WriteErrorDetail
objects throughout the WriteBatchExecutor class.
SERVER-13163/SERVER-13165 Assign fassert codes.
SERVER-13265 Fix race condition in mongorestore startup
SERVER-13033: Static Initalizer race condition with CreateDirectClient and server-side Javascript
SERVER-13163/SERVER-13165 Target index creations correctly in the oplog on insert write commands.
SERVER-13001: fixup mongos side with mixed version shards
BF-195 modified non-terminating map reduce function to sleep instead of spinning
SERVER-12438 better handling of batchSize and limit with sort
SERVER-13038 fix indentation in QLOG output
SERVER-13295 Ensure that user and data documents reach all nodes in auth_no_pri.js.

In order to confirm that you can authenticate to and read data from a
non-primary node with auth enabled, the test set up phase must write some data
and wait for it to reach all nodes, before taking down the majority of them.
This patch achieves this by setting an appropriate write concern on the user and
data document inserts.
SERVER-13294: mongos exit after --upgrade
SERVER-13293 fixed geo filter memory leak when creating index scan/fetch stages
SERVER-9765 do not noteRemoteIsPrimary when a node decides it is the superior primary in a two primary replset
SERVER-13282 Fix leak in mongos BatchedWriteExec::execute()
SERVER-13302 Fix error message when create index during migration fails
SERVER-13294 mongos --upgrade should exit after upgrading

Fix multiVersion tests