SERVER-7663 - Fix Mongostat usage help from bits to bytes in netIn and netOut

Signed-off-by: Matt Kangas <matt.kangas@10gen.com>
SERVER-7174: remove checkDoc, use element copy constructor, add test for log without apply
SERVER-10084 When --logpath is specified and --logappend is not, rotate away preexisting log files.

This fixes jstests/slowNightly/logpath.js, and brings behavior in line with prior versions.
SERVER-6399: allow smoke to accept setParameter
SERVER-7175 Teach the update driver to do updates in place.
SERVER-1891 Consolidate command authorization checking logic.
SERVER-7174: fix pullall unit test
SERVER-9468 Pull out bulk of CmdGetLastError::run() into helper
SERVER-8598 allow CollectionManager to track pending chunks

Also includes fixes for MetadataLoader
SERVER-8598 link pending to ShardingState and RangeDeleter
SERVER-8598 fix compile duplicate it in d_state.cpp
SERVER-9395 Implement $minDistance for geoNear command

Squashed:
- Spelling in comment.
- $minDistance option for $near queries with 2dsphere index. SERVER-9395
- Implement $minDistance for geoNear command. SERVER-9395
- uassert that geoNear's min/maxDistance param is non-negative
- More $nearSphere tests. SERVER-9395
- uassert that minDistance isn't used with 2d index. 2dsphere index is required.
- More informative error if assert.throws is misused.

Signed-off-by: Matt Kangas <matt.kangas@10gen.com>
SERVER-8886 Add LICENSE file for OpenSSL
Revert "SERVER-1891 Consolidate command authorization checking logic."

This reverts commit d430713c403fa6b065337cf7e480ed70940631ab.
SERVER-9444 Use Sorter in DocumentSourceSort

For now external sorting is disabled, but this lays the groundwork to
enable it.
SERVER-9444 improve Sorter serialization of Document and Value

This is needed for correct handling of missing values.
SERVER-9444 Remove context-awareness from Accumulators to prep $group for Sorter
SERVER-9444 Make $group use Sorter when results don't fit in memory
Remove dead classes: DocMemMonitor and StringWriter
Extra safety to prevent Sorter from writing to disk in mongos

Follow-up to SERVER-9444