Move some code from Stream2Socket to the process

It makes more sense to have the logic for encoding and sending in the process
Set some reasonable default values for Stream2SocketProcess