HTML generation for the outer parts of the TIP webapp is currently <i>awful</i> with lots of <code>puts</code> calls and other such horrors. It should be done with some sort of templating system. No idea what that would look like.