elasticsearch: add support for plugins
Merge pull request #3292 from offlinehacker/elasticsearch_plugins

elasticsearch: add support for plugins