Pareto optima and competitive equilibria with moral hazard and financial markets