THIRD AMENDED AND RESTATED LOAN AND SECURITY AGREEMENT