Lots of random little fixes around Streams.js and xhr