MASTER REPURCHASE AGREEMENT Dated as of May 31, 2013, as Amended and Restated to and Including June 17, 2016 CALIBER HOME LOANS, INC., the Seller, MORGAN STANLEY BANK, N.A., the Buyer and MORGAN STANLEY MORTGAGE CAPITAL HOLDINGS LLC, the Agent