add sopport for http authentification

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