Move style out of js and into css where it belongs.
Performance improvements for table rendering.

Specifically:
* Don't block the UI thread by rendering the table in a blocking
  manner. Cede to the scheduler. This renders one row at a time.
* Don't render subtables until they need to shown.