Untangle internal and external functions, to prevent recursive locks
Return spent data in TxListReply. Unspend coins when blocks are removed during DropAfterBlock.
The Db interface is intended to work with block heights as opposed to specific database ids which may or may not be the same as the block height. This commits changes the function names to make that distinction a little more clear.