Details of the ins and outs of the deal between Labour, Greens and NZ First to form government.