Implement real testpool for ConnectInputs in mining mode.

Don't use txindex (and its "spent" information) at all in ConnectInputs,
instead use a memory testpool designed for that purpose.  This will
allow to remove the "spent" data completely from CTxIndex.