Lots of updates to Blocktester.

Headers-first support and new tests that were never pushed.