Support automatic ID generation

ES supports automatic ID generation when using POST instead of PUT and
not supplying an ID in the URL (see
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-index_.html#index-creation
for details).

Closes #3