detect ES version automatically

Removed the "Version" configuration option from the plugin and detected the version of ElasticSearch automatically.