add update API

The update API allows to update a document in Elasticsearch.
See
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-update.html
for details.