AMENDED AND RESTATED TRUST AGREEMENT among MERRILL LYNCH MORTGAGE INVESTORS, INC., as Depositor, and WELLS FARGO BANK, N.A., as Trust Administrator Dated as of September 1, 2004 Fieldstone Mortgage Investment Trust, Series 2004-4 Mortgage Backed Notes