Added a generic implementation of the transport agent.
Take host and port for agent from file.