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