Refactor exec/attach client and server code to better support interoperability testing of different client and server subprotocol versions.