Added elasticsearch mapping template management to elasticsearch output plugin

Added Elasticsearch mapping template management with official default template.

Mirrors the changes in elasticsearch_http.rb in #826 with specific changes for this output plugin.