AMENDED AND RESTATED MASTER REPURCHASE AGREEMENT Dated as of May 13, 2002, amended and restated to and including May 21, 2004