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
Yep, will update that pre-merge. Thanks for the extra eyes! :)