A Dynamic Theory of Collective Goods Programs