Move logic out of main()

Signed-off-by: Alex Jackson <ajackson@pivotallabs.com>
Remove agent. Set config as package protected variable

Signed-off-by: Alex Jackson <ajackson@pivotallabs.com>
Much more logging

Signed-off-by: Alex Jackson <ajackson@pivotallabs.com>
Removing unused config on TcpLoggregatorClient

Signed-off-by: Alex Jackson <ajackson@pivotallabs.com>
Make use of anonymous members

Signed-off-by: Alex Jackson <ajackson@pivotallabs.com>
Better tests, fixed log messages

Signed-off-by: Stephan Hagemann <stephan@pivotallabs.com>