consolidate: pass around unspent_coins, rather than global var

Perhaps this decision will be reversed, later.
consolidate: add --maxbtc option, to control max-value filter
consolidate: sort unspent coins by value
consolidate: reduce unspent to minimum required
consolidate: fix off-by-one