Added BasicAuthenticationHandler for web api requests.