A Dynamic Theory of Incentives in Multi-Agent Systems