Add CTxIndex::GetContainingBlock from Huntercoin.

Port over a refactoring from Huntercoin that replaces
GetDepthInMainChain by functions to also get the height directly.