Place table actions in footer too

* Use td elements rather than th, the cells are not column headers, but
by being in thead and tfoot they have the appropriate semantics.
* Move actions into a partial and include both in thead and tfoot