Shaping Incentives through Measurement and Contracts