changest auth process in stream.js to make sure that all kind of authentication mechanism work + added digestmd5