Risking Other People's Money: Gambling, Limited Liability, and Optimal Incentives