Added basic authentication (RFC 2617)

Added basic authentication (RFC 2617).