Changed stdout / stderr prefixing to use a proper stream.Writable subclass; style fixes