Adding support for Api Key with HTTP Basic Authentication

Hi, this adds supports for using api key style authentication with HTTP Basic Auth.