Adds request and response handler.

todo
* complete handshake
* implement sending of messages (transaction_based_peer)
* test the request/response handlers