Moving ElasticSearch client into a plugin

Change-Id: I560d13a1fd83bfc149aa2f6053e0e4ca1fc308c4