adding in support for basic http auth
making suggested changes based on marcosnils feedback and comments
Merge pull request #65 from jefftulsa/master

adding in support for basic http auth