agent: lifecycle cleanup and prep

I anticipate some major problems with sync/async nature of commands
issued against a container... will likely necessitate a rewrite of the
interaction layer.