streamserver: add basic authentication support