Make CCoinsView use block hashes instead of indices
Move CCoins-related logic to coins.{cpp.h}
Merge pull request #3199 from sipa/mempoolmove

Cleanup refactoring of coins/mempool