Fixed mongos failover behavior
Merge branch 'master' into 2.0-dev