Dry up the transport options processing

Here I try to use a class method setup_encoding_model
to configure the encoder/decoder coroutines. This
is called from handle_socks_args and setup...
But it doesn't work...
Fix setup and handle_socks_args

There is code duplication... however
one sets class attributes the other object attributes.