Added basic authentication (RFC 2617)

Updated connection settings and connection to handle basic auth