SECOND AMENDED AND RESTATED MASTER POOLING AND SERVICING AGREEMENT Dated as of May 25, 2004