Added basic auth support for upstream hosts