AMENDED AND RESTATED CREDIT AGREEMENT AND AMENDMENT TO SECURITY AGREEMENT