MASTER REPURCHASE AGREEMENT GOVERNING PURCHASES AND SALES OF MORTGAGE LOANS