Command line mode

Opening new PR to replace #71
@davidfowl @abnanda1 
This seems wrong. Shouldn't this be `await writeStatusTask;`? Don't mix `.Wait()` and `await` - I think the only reason it did not deadlock was that you were running this as a console app.