AMENDED AND RESTATED TRUST AGREEMENT between AFS SENSUB CORP. Seller and WILMINGTON TRUST COMPANY Owner Trustee Dated as of August 23, 2004