Moved empty stream creation to util.

Changed streamableToBuffers()'s doPipe() from promise to callback style.