MASTER COLLATERAL AGENCY AND INTERCREDITOR AGREEMENT