Command line mode

Opening new PR to replace #71
@davidfowl @abnanda1 
Take a stream/streamwriter as a dependency?