A new tripartite agreement for the Port of Auckland signals a turnaround for a workplace long dogged by controversy, including debt, delays and death.