Fixed tests for QA-470
Fixed readPreference bug for mongos
Refactorings to use .command and to fix issues for mongos sharding
Merged 1.4 in