Cashsec posting now done in batch rather than one after another.

With the former way, if a trxn is written to entry contra and then
another trxn raises error which means I need to start again, all
trxns already written to entry contra will be duplicated.