implemented http basic authentication (closes #1337 [sic!])