SERVER-14532 additional logging for plan ranking ties
SERVER-13734 Remove catch (...) from handleIncomingMsg

This will help us get stack dumps on all unhandled exceptions on Windows,
not just those, which occur on non-query threads.
(cherry picked from commit ece2f2e2b997eb5c21328966ce2ccff9bdfe4db2)
SERVER-14034 make kMaxScansToExplode a query knob
(cherry picked from commit 0ae43e5c66c119e2963e7a58fa9cb37b8c87ff06)
SERVER-14034 increase max scans from explodeForSort to 200
(cherry picked from commit 659d9ecb48f0bbddfac486962c1622737641ebc7)
SERVER-11776 Replication 'isself' check should allow mapped ports

    'isself' should match the ports only if the hosts are being string matched.
    In cases where an instance is being addressed through a proxy port,
    port matching is an incorrect check - it invalidates a genuine match.

Signed-off-by: Benety Goh <benety@mongodb.com>
(cherry picked from commit 4bb1a6155bc7bfb7cb69ff6844d427f0159a888c)
SERVER-11776 added scott's replication test for the isself command with mapped ports
(cherry picked from commit 8f4148960e4107beb3314d7cd3214066f82c1d99)
SERVER-11776 move port check outside loop
(cherry picked from commit da2701673900d4a0e70aca04fb9a34f424469601)
Merge remote-tracking branch 'upstream/v2.6' into v2.6