Cleaning up the codebase, making the ES server URL configurable.