SERVER-3223 js test for upsert with $bit

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
SERVER-5625 SERVER-7426 allow all connections in all states to tolerate downed shards and primaries
SERVER-9063 SERVER-10026 can sort on doc metadata, remove implicit text sort
SERVER-10026 query migration js test updates

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>