Rationalize output management and calculate also unconfirmed balance.
Balance now is got directly from available inputs instead of address balance.