Convert ES arguments to simple URL

Passing host, port, index separately isn't flexible enough for
situations where the base url is not /