Lay out phase rows dynamically.

This should ease supporting more phases without huge code/xml changes.
Also positions the phase icons.
ProdBars are currently not displayed, but will be dynamically shown/hidden
where needed and positioned accordingly.