Refactored all the pages and a few of the scripts to use the new rendering system and the widget.