Support HTTP Basic auth

It may be worth exposing all of the request options to the client instead of doing this ad hoc.