Adding support for basic auth

Hi!
I've added simple support for basic authentication and figured it might be useful for others.