Added HTTP BASIC authentication support.

Hey Shan,

This doesn't cover any other types of authentication (because I don't need them yet). We can cross those bridges if we come to them.

Thanks,
Jamie