More structure for the deagent

* Extract loggregatorClient into its own package
* Lots of stuff now private
* loop through tests