Hightlight last row in task summary on plotting page.
Refactor foremen plotting a bit.

Shorten variable names, simplify template loops, and merge stats reading
methods to avoid duplication.