SECOND AMENDED AND RESTATED CREDIT AND SECURITY AGREEMENT dated as of November 21, 2002 and amended and restated as of January 2, 2004