collection: use createIndexes when posssible for index creation.

2.6 has a new command called createIndexes which should be preferred to
performing an insert on the system.indexes collection.

Upon command not found failure, we insert into system.indexes in the
old style. Contrast this to the situation where we know the server
version/commands and make a decision based on that.