Added code for handling agent packets in client.
Still waiting for transport protocol support.