A Dynamic Theory of Employment Contracts