AMENDED AND RESTATED REVOLVING CREDIT AND TERM LOAN AGREEMENT