MASTER MORTGAGE LOAN PURCHASE AGREEMENT