Add es package

Looking for some feedback on this approach to talking to ES.
We should probably be trying to use one of the JSON APIs here rather than parsing text.