Last year was a financial bust for container ship lines, which lost more than $6 billion amid a frenzy of rate-cutting.