AMENDED AND RESTATED TRUST AGREEMENT between AFS FUNDING TRUST Seller and WILMINGTON TRUST COMPANY Owner Trustee Dated as of August 17, 2005