Split script library and footer into separate module.
Changes to include on/off switch.  Not sure I want to keep it though...