simple refactor on wallet balance to support caches
unspend cache!
add wrapper function to onIndexes
fix tests
rm log
fix args
Merge pull request #2114 from matiu/ref/utxos-cache

Ref/utxos cache