Added documentation and a simple test for the ensureIndexes method.

Primarily to demonstrate that the type of the return value is implementation
dependent, and how futures can be combined in cases where there are multiple
indexes to be created.