Elasticsearch, allow custom options for update+delete

including support for optimistic locking (#1313)

fixes #5758