Optimal Incentive Contracts When Agents Can Save, Borrow, and Default