Balance export in ledger format

Base code for #11 

Thanks to @sheetalk for the ground-work.