Better handle HTTP auth
Created originally on Bitbucket by Anonymous
Current impl: The app propagates an "Authorization" header into all of its messages. It does not save anything as cookies the auth is lost when reloading the page.
Better impl: The app logs in once, then saves the cookie sent as a response.