Allow any elasticsearch config setting to be configured more easily.
Fix jshint syntax warning.
Fix startup with HOME environment isn't set.