Minor refactoring

Things that should have been done when turning 'Protocol' into a trait
and 'TCPTransport' into an actor.