css & script smarty functions weren't smarty blocks, which they should've been; css, cssFile, and script were all in scriptFile.php; extended cssFile and scriptFile to include support for modules and publishing.
Usage notes.