Port vspent optimisation from Namecoin

Reduce the storage size of blkindex's transaction index by removing the old vSpent array and replacing it by a simpler array keeping only track of spent-types of transactions and not the positions of spending tx.