Elasticsearch schema fixes.

Based on the kixi.amon-schema.

Done manually for now, but more complete than before.
Merge pull request #170 from MastodonC/feature/es-schema

Elasticsearch schema fixes.