Pareto Optima and Competitive Equilibria with Moral Hazard and