Allow the user to configure an instance of elastic search in the app

Optionally, if a config.elasticsearch is configured, we can instantiate a global object with a connection to Elastic Search to be used for indexing/querying.