EXECUTION VERSION AMENDED AND RESTATED LOAN, GUARANTY AND SECURITY AGREEMENT Dated as of April 20, 1999