AMENDED AND RESTATED TERM LOAN AND REVOLVING CREDIT AGREEMENT dated as of