CDRIVER-425 use listCollections to enumerate collections.

I'd be surprised if I wasn't leaking memory somewhere. Will valgrind this tomorrow - but in the meantime I would appreciate style & design comments, etc.

Tested against 2.7.7 and 2.6.3.
c89