SERVER-13948 improve stability of replsettest.awaitReplication() while getting the config version from master
(cherry picked from commit 2332856f030fb5cbea19ae2b146b3f21b21faa11)
SERVER-13727 add collStats permission to builtin backup role
(cherry picked from commit 24aeb8515961f9dc493addee39ee2d2c78254d90)
SERVER-13804 add necessary privilege to the built-in restore role
(cherry picked from commit b1e42ae09dbcf45e5b35b787743bb183930b20a9)
SERVER-13868 Mark V1 users as probed on databases that they do not have surrogate user docs on
(cherry picked from commit d900470dc3fbe19539a8404b5216974b9688f90e)
SERVER-13852 initialize IndexBounds::endKeyInclusive in constructor
(cherry picked from commit bd223e14fe2fbbb9dd76a5410ff5ee8c47383758)
SERVER-13714 fix enumeration of non-top-level indexed negations
(cherry picked from commit 38711ac013df44b1bc928f868ee45a9ac93b3ffb)
SERVER-13802: fix insert validation with timestamps
(cherry picked from commit 3061ab54eb2cc642a279becfca0b93f5e17db117)
SERVER-13368: Expose microsecs_running in currentOp
(cherry picked from commit 9dc581691ba4b7fbd84fbb985a4ab826c02abd4d)
SERVER-13588 Fix regression in supression of startup warning when unauthorized
(cherry picked from commit 177d92b10d8447eb09cca8c6bd8eed0d9f04bc54)
SERVER-13731 make depth limit in parsing work for deep trees other than AND and OR
(cherry picked from commit 78c850d9c512596a3a8f7e937840d67f52a14baf)
SERVER-13750 prevent invariant failure when ConvertToCappeding a nonexistent collection
(cherry picked from commit ff276366a823fdbd73be5594244b4bdb4e63e1a0)
SERVER-13715 plan subqueries on construction of a SubplanRunner

This enforces the error behavior expected by aggregation.
(cherry picked from commit 20263ce4e9c345a2d3748ef2071f6dc860a092f1)
SERVER-13715 fix use of auto_ptr after release in subplan runner
(cherry picked from commit 193aba81f1c9c9c0c0a7e9ba857e7538dc6b6ed0)
SERVER-13616 "type 7" (OID) error when acquiring distributed lock for first time
(cherry picked from commit 6254a575a99d9eeda90b0712efd4486411591212)
SERVER-13687 fix plan enumeration for compound multikey 2d or 2dsphere indices
SERVER-13789 recursively build data access for subnodes beneath elemMatch
(cherry picked from commit eb97470c0507020e3c0f1cc47751feaa777b5d2e)
SERVER-13752 do not attempt to explode for sort with empty bounds
(cherry picked from commit 1f83b5f5e3ad400fe2de0e7427548cb21a05d751)
SERVER-13037 Fix misspelling ("compatability" to "compatibility")

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
(cherry picked from commit e77625d39452aa0ba5937773496ba3eded2e0b66)
SERVER-13754 explode OR solutions for sort
(cherry picked from commit 4fd34d5272e6b282f5b98b7b65c4ba2c092d93fb)
SERVER-13794 - only start snapshot thread on isHttpInterfaceEnabled

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
(cherry picked from commit 3926d4db3aab1d65f381afcb39783da0edaa2b7e)