Fix two issues. First, share ElasticSearch connection so that too many sockets don't get used. Second, fix bug when ingest node != core server. Add a bit of logging too.