agent: simplify desired state construction
agent: move task-related code to task.go
agent: serialize tasks through taskManager
agent: model dependent tasks using taskChains
Merge pull request #755 from bcwaldon/serialize-tasks

Serialize Agent tasks