Construct UTXO database from a rescan.

Add initial code to construct the UTXO database on startup from a rescan
of the existing blockchain.