Factored the ReadableStream stuff out into lib/util.js
Fixed the main test suite