Add support for http authentification

Please merge this pull request which allows clients to set http authentification headers.