Added initial stuff to switch over to elasticsearch.