Added dependency only to the latest(0.90.0) elasticsearch
Cleaner way to hook the plugin to elasticsearch
Minor reformat of the code