Worker IO refactor4

Creating and using an AgentReceiver class to deserialize calls from worker to agent
@davidfowl @abnanda1 
For the moment, the trace is sent to the agent's console and sending it back to the controller would require some strange coupling.
The plan is to eventually replace this code with an RPC library (i.e. Streamer) so I would argue this is good enough for the time being.