Reorganize at startup to best known block

Trying to detect the presence of a better chain in chain.dat and then reorganize to this chain using existent blk files.