make http port configurable

Not necessarily. Applications don't have to talk to internal ES port. Usually this port is dynamic the way ES discovery works.