SERVER-14212 Fix test of _mergeAuthzCollections command by adding missing "db" field

(cherry picked from commit e1d0d5cb71ed1788fc9085cf19e7b0470c4c66d5)
SERVER-9788 mongos does not respect secondary preferred after temporarily unavailable secondary

v2.6 fix: Added server parameter to tweak the frequency of when a replica set connection will decide when it needs to re-evaluate the node selection from scratch for a query with read prefrerence (i.e., decide not to use the cached connection regardless of read prefrerece compatibility).
SERVER-12512: Add role-based, selective audit logging.

(cherry picked from commit f2d47ee)
SERVER-13707 simplify tojsonObject

(cherry picked from commit 68c2f37993d8abb7d35a61eb79c7e0e16d021f68)
SERVER-14556 mongod --configsvr default dbpath should be same as 2.4

(cherry picked from commit 7797c0ed4fc2ce61979ae5d8b0931d73e08855bc)

Conflicts:
	src/mongo/db/mongod_options.cpp
	src/mongo/db/storage_options.h
SERVER-14254 convert _v8_function from function pointer to boolean

(cherry picked from commit e48abc5beeec5c8b79a6a6a42f9d374ccd323fd2)
SERVER-14107 Querying for a document containing a value of either type Javascript or JavascriptWithScope crashes the shell

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
SERVER-14123 prevent the explain BSONObj from growing too large

(cherry picked from commit 906cfb13a337fdbdf1b94b773390c4230b059fec)
SERVER-14518: Allow disabling hostname validation for SSL

(cherry picked from commit 138d78bd6d3b28db332f263bd808ccb4f1ac6979)
SERVER-14607 do not discard data while merging working set members for index intersection

(cherry picked from commit 7acc48b74c6c0755e63a0358521055aae9792cd4)
SERVER-14607 fix compile for index intersection dbtest
SERVER-14431 Invalid chunk data after splitting on a key that's too large to index
(cherry picked from commit 0e8a436fdedc9a56ddd4e773d45d7963a8f358a6)
(cherry picked from commit 7174d92cc1ad3dd24430769b72c05b1ee6fbcd74)
(cherry picked from commit 4f01ffd9cbbb0dcb4ee2f9167ad2337178259ba9)
SERVER-14123 prevent explain BSON from growing too large on mongos

(cherry picked from commit ffc53f46956eb52a86efd51620dede98e1b48444)
SERVER-14625 fix index bounds issue for negation inside elemMatch

(cherry picked from commit 42034d4c3713461658f00f952e13943770eb4620)
Revert "SERVER-13681: Remove lock that was an incorrect workaround for Azure Drive write size limitations."

This reverts commit 78c068e5d63d77648954252a785b3673d6e314b7.

(cherry picked from commit 231262fda82a3245b8690fdc6421ea1fa3a8a2dd)
SERVER-14039 Wrong limit after skip with $nearSphere, 2d index
SERVER-14123 Delete jstests/sharding/explain_large.js

explain_large.js spawns 18 shards and runs a query that allocates
300MB+ of memory on each.  This causes OOM conditions on MCI's 32-bit
buildvariants (limited to 4GB of addressable memory, no swap).

(cherry picked from commit 4dd1c9e70cc4a17d233c32180933da24b4c57ef5)
SERVER-14283 Update package config file httpinterface default

(cherry picked from commit d004a865ed9f12d5968233fcc77ea588f38702d1)
SERVER-14665 Make sure that _me BSONObj is owned before we store it aside
(cherry picked from commit b6bd23b1b3f9274e1516feb05ee7172430943396)