Update ElasticSearch persistence provider to use ElasticSearch's API, WTD-1033.
Copy CouchDB adapter to use as a basis for an adapter to ElasticSearch, WTD-1033.