FIRST AMENDED AND RESTATED REVOLVING CREDIT, DELAYED DRAW TERM LOAN AND SECURITY AGREEMENT