MASTER REPURCHASE AGREEMENT BETWEEN CDC MORTGAGE CAPITAL INC., as Buyer and ENCORE CREDIT CORP., as Seller Dated as of June 30, 2004