Added basic auth support for requests.