Remove TCPSocket and use MessageProcessor instead

Typedef the `MessageProcessor<>`.