Essays on Structured Finance and Housing Markets