Allow user to capture document info into the event

This adds a new setting 'docinfo_target' for specifying where the
elasticsearch document info (index, type, id) are stored in the event.

* Original code from PR #730 (author Thomas De Smedt)