Get rid of a lot of WriteStream hackery, plus the whole inputChain, coercing everything into a streams interface