EXHIBT 10.5 AMENDED AND RESTATED MASTER GUARANTEE REIMBURSEMENT AND LOAN AGREEMENT