Implement the client with HTTP basic authentication.

Fix #1.