Some tidying of editable-table implementation.

No more global JS vars, and the row templates no longer contain <tr>
wrappers. Also some use of <table>'s API.