Add es package

Looking for some feedback on this approach to talking to ES.
We perhaps want to check that the status code is OK and return an error if not.