AMENDED AND RESTATED CONTRIBUTION AGREEMENT, PLAN OF MERGER AND PURCHASE AGREEMENT