CXX-189 Implement support for createIndex; remove ensureIndex and relate...

...d
As per our IM discussion, `hasField()` might work even though it would be O(n) rather than O(log(N)) for this.