Move buffered stream reading to cli runner for reuse between commands.
Unit test for 'balance' ledger command.