Essays on Financial Fragility and Credit Markets