fix: Handle server authentication without popup

The previous implementation of autehnticating to the server was not working properly, and the
browser was opening a popup prompting the user for credentials. The implementaiton was changed
to set BASIC authentication info in an HTTP header instead of settng user and password values
on the XmlHttpRequest.