dynamically set config http port if not already set in config
move http_port to configuration to config file.
use endpoint urls internally