Add support for http basic auth, closes #36