Refactor some things out to the 'streaming' package, move main script to bin/
0.3.2