Add support for reading from arbitrary streams under node.js