Add support for basic auth.
Merge pull request #10 from areina/basic-auth-support

Add support for basic auth.