Allow to setup a parent document on the ES ouputs

Add the parent document setting on the elasticsearch_http and
elasticsearch_river outputs. Unified also the way to create the ES
messages in these two outputs.
'elasticsearch.rb' is not changed as 'jruby-elasticsearch' (the ES
library used in that output) doesn't seem to have the concept of
'parent' or at least I haven't found it.