Implement ensureIndexed query functionality

Implement index create and update functionality for Cloudant Query.