[fix] add ability to handle basic auth
[test] test for basic auth
Merge pull request #218 from jcrugzz/basic-auth

Add basic auth support