Move history table rendering to Templates.Utils, and add a couple of extra combinators