Exhibit 10.1 Amended and Restated Master Loan Purchase and Servicing Agreement