Updated to take into account pending tx when the wallet is attached to a store (direct store spending)
UTXOProvider added to replace the store, and other minor changes.