Add support for many aspects of replica sets, including MongoClient::getHosts method.