Essays on Housing and Macroeconomics