This fixes issues with the protocol handshake and status exchange and adds support for responding to GetBlockHeaders requests.