Send Es client as an interface

Easier to replace with other implementations and for later testing.