#443 Added support for basic authentication

Resolves #443