Serialize Agent tasks

https://github.com/coreos/fleet/issues/646
Actually, this can be removed entirely now, right? `UnitStateGenerator` should clean it up