SERVER-7424 Use simpler regex to produce single line output in tojson()

When displaying small objects, convert only tabs, carriage returns and
newlines to single spaces, leaving other whitespace alone.
SERVER-7588 Improve logic for seconds and milliseconds in ISODate constructor

Do not use floating point for seconds, only for milliseconds.  Adjust other
date components when milliseconds round up to 1000.
Fixes SERVER-9491

Upper chunk key was not written properly to the log in some places.
SERVER-9542 Fix incorrect unit test

Unit test was passing due to the bug fixed in SERVER-9542.  We
SHOULD get an error when trying to cloneMinus to the same version.
Changed the test to use a higher major version so that no error
message will be returned.
SERVER-9401 remove duplicate points in lines because S2 doesn't like them
SERVER-9448: make map and reduce argument and receiver objects mutable
SERVER-9315 Make sure local.slaves collection can be maintained in a system with security enabled
SERVER-9538 Only update BufBuilder's len if successfully grew

Otherwise BSONObj destructor will try to grow again to add EOO byte,
causing a double exception and terminate() call.
SERVER-9333 clear ghostcache at reconfig time
SERVER-9333 correct reference counting of GhostSlave members

The _ghostCache contains shared pointers to GhostSlave members.
When we clear this cache, we decrement all the reference counts to these objects.
Because we were not keeping a shared_ptr to a GhostSlave object in percolate(),
but instead were using a bare pointer, this caused the bare pointer to be deleted
out from under us when we cleared the cache.  This in turn caused the internal
objects like the OplogReader to be deleted, which caused segfaults in percolate()
when we attempted to advance the oplogreader cursor.
SERVER-9333 wait long enough for slow builders like Windows Debug