Essays on Banking and Debt Contracting