Added streaming interface

Take a look at lib/texts.js and bin/texts.js for an example.