Support HTTP basic access authentication

WWW-Authenticate http://tools.ietf.org/html/rfc1945#section-10.16
Added basic authentication support