Fix tblgen.py and related to handle v3 data.

Styling is not finalized so the minified CSS has not been updated.