AMENDED AND RESTATED MASTER CONSULTING AND ENGINEERING SERVICES AGREEMENT