Fix problems listing in staging dashboard

 * Group building failures of the same packages in just one line
 * Only display the first 5 problems