Make IsSuperMajority a standalone function
Move remaining CBlockIndex methods to chain.cpp