Refactor/table rendering

Strings manipulation is faster than loads of 'DOM' manipulation on the server. Let's use strings.
More minor pedantry: a 14 line return statement is a bit fat. Can we possibly move the `_.map(...)` into a variable, then `return '<tr>' + rowContent + '</tr>';`?