Adds Basic HTTP Auth support

I'm using a haste-server that requires Basic HTTP Auth so I had to do this.