Essays on Credit, Macroprudential Regulation, and Monetary Policy