SERVER-14494 SERVER-14505 ensure that IndexBuildBlock::fail() can never throw

(backport of 5e06c1745105c8e2b50ba875e4433cd93f471ea4)
SERVER-13822 check for replSet pointer in resync command

(cherry picked from commit c10e8282a7af38f8512e911a14889e14df8a2c6a)

Conflicts:
	src/mongo/db/repl/resync.cpp
SERVER-14350 validate distances for circular regions in $near/$within
(cherry picked from commit 7a0d83d88d18d5c28fe13bd5dc0b13d1c6c2ef22)
SERVER-12750 disallow exhaust query option through mongos
(cherry picked from commit 98fb05b9cc74318984574478cc7eadc1167a97e8)
SERVER-13648 backport cursors waiting periodic message for range deletion
SERVER-14032 verify _id present for upserts to multiple config servers
(cherry picked from commit 108ec7640743a97d2e02a081ef16d0c4da748c67)
SERVER-9526 a more elegant solution to printout of BinData in log messages

This commit changes the behaviour of BSONElement::toString() to print BinData in the same way as the other element types. It puts a cap on the lenght of the binary data in the same way as for string. Using full == true overrides the cap in the same way.

Signed-off-by: Greg Studer <greg@10gen.com>
(cherry picked from commit 54845ac08d80b9556cbcbea711ad0529feb09c0f)
SERVER-13615 sharding_rs2.js intermittent failure due to reliance on opcounters

(cherry picked from commit 8a2d33b071b5c528a65bb921cc778cef31500425)
SERVER-14532 additional logging for plan ranking ties