comment
agent: refactor task monitoring
flap test: wait for task to start
harden, comment and test task monitor
Merge pull request #18 from spotify/dano/agent-refactor

refactor agent