PHP-1249: MongoCursor::count() should use cursor's socket timeout
Merge pull request #746
Merge branch 'v1.5'
PHP-1244: Mark MongoCursor::doQuery as final.
Merged pull request #739
PHP-1225: Rename get_server to php_mongo_collection_get_server and make it accept a link instead of a collection.
PHP-1225: Split out enumerating collections into a legacy and command function.

Command function not yet implemented!
Create php_mongo_collection_find to cover both RP copying and cursor creation.
MONGO_METHOD(MongoCollection, find, …) -> php_mongo_collection_find().
Convert MONGO_METHOD in mongo_db_list_collections_legacy to real cursor C functions.

MONGO_METHOD -=5
PHP-1225: Implement command version of listCollections.
Make sure to bail out as soon as we can with a descriptive exception.
Added test cases for command listCollections, and make sure we only force primary when we are in a replica set.
Added other replicaset related test cases.
Fixed test case names.
PHP-1225: Fixes after review.
Merged pull request #741
PHP-1226: Split-out getIndexInfo into a legacy and command function.
PHP-1226: Rework the legacy listIndexes branch to no longer use MONGO_METHOD.
Added test cases for replicaset considerations.