Added configurable hostname and basic auth in config file.