Remove global state from deaagent

* make the logger a member of the domain structs
* turn config into agent