simple stream module inspired by node.js streams