SERVER-6405: fix Database Collection cache when an index fails to build
SERVER:-6405: fix dbtests use of dropCollection
SERVER-10958: Update error messages and provide _id of error docs
SERVER-11067: Use local db lock to save replica set [re]config
SERVER-8606 Correct error message for OpenVZ
SERVER-11062 fixed runtime issue with unsupported printf width specifier z on Windows
SERVER-6405: move dropNS into Database and make private
SERVER-6405: remove old addNewNamespaceToCatalog
SERVER-11056 Don't assume address uniqueness for detecting root element instantiation
SERVER-11070 When using libc++, things are never found in TR1, even in C++03 mode
SERVER-8510 Fixing typo directly -> directory in options help string

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
SERVER-11056 Fix unused variable warning in non-debug build
SERVER-10358 temporarily move module.cpp into server_options

This fixes a linking issue with mongos.
module.cpp is going away in the next few weeks.
SERVER-10026 enum >1 plan, prefer plans with more compound fields when ranking
SERVER-10026 new vs old system spigot
SERVER-10165 aggregate() shell helper now returns a cursor

The actual change is in src/mongo/shell/collection.js with the remaining changes
to adjust tests to the new api.

The "ideal" arguments are now an array of pipeline ops and an optional object
with extra top-level options for the command (such as {explain: true}. For
backwards compatibility, we still support the varargs style where each argument
is a pipeline stage, but there is no way to specify extra parameters in this
mode.
SERVER-11084 Error when mixing --gcov and --cache
Rip out ExpressionFieldRange

Most of its logic wasn't actually hooked up so it doesn't actually offer much
advantage over ExpressionCompare. When we go to actually implement these
optimizations, it should be generic, not just for FieldPaths.
Rip out Expression::toMatcherBson()

It isn't called by anyone and most remaining implementations are verify(false);
SERVER-6405: remove dead code and move things around