Payouts

Here's my merge with master after a month, plus my refactor for a payouts loop in Payday (cf. exchanges/settlements dance).