ZEN-13262: Add support for version conflict detection.

See http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/optimistic-concurrency-control.html for more information if necessary.