Speed up block downloads.
Don't increase block download count per loop unless we
were at maximum last time.
Test of Blockchain rewrite.
Add a test of a large number of hashes.
First step in dealing with locked chain.
Get locking of BlockChain working to improve performance.
Remove unused function.
Remove obsolete test lines.
Locking the block chain so it's not too slow.