Adding fork_tree to handle fetching of blockchains.

Implemented some handling of request headers so that new clients
know what to fetch upon connecting.