Move to case classes for serialization and remove Elasticsearch endpoint

Doing the dance for custom Writes was getting a bit of a pain.

The Elasticsearch endpoint has been broken since ES 1.0, so I've decided to get rid of it for the moment.