Reimplement chain-related CBlockLocator logic in CChain
Move CBlockLocator to core.h