Add support for inline CSS/JS within markup. Makes sure to remove temporary files
created during packaging. Also better handles data-nopackage flag (no
value required).

Finally, breaking up a couple methods to make this craziness a little easier to
read.