Add debt resolution script

Script generates emails to all users with their cumulative debt for all
unsettled transactions, then marks all these transactions as settled.