CONTRIBUTION, INDEMNITY, INTERCREDITOR AND COLLATERAL AGENCY AGREEMENT