Merge pull request #71 from pedroigor/master

Basic and Digest authentication support.
Merge remote-tracking branch 'upstream2/master'