SENIOR LOAN AMENDED, RESTATED AND CONSOLIDATED SENIOR SECURED PROMISSORY NOTE