Merge elasticsearch_api and _type = facility changes

I've merged joschi's changes and mine, and also added configs to enable the java API.  I'm currently running the Java API to index thousands of messages per second.