move agent listener to loggregatorlib

Signed-off-by: Alex Jackson <ajackson@pivotallabs.com>
goformat cleanup

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