The Management of Talent: Optimal Contracting for Selection and Incentives