input elasticsearch: optionally capture document metadata (document type...

..., index, document id)
The patch also contains some debug and failure handling for the previous fix  https://github.com/logstash/logstash/pull/670 on the scroll id
This should be changed to point to the `elasticsearch` output with `protocol => http` instead of the deprecated `elasticsearch_http` output here.