Fix elasticsearch to not require setting URL in app.

And other improvements.