Add general TransformStatic function

In the future, this should contain cases for minifying JavaScript, HTML,
and CSS, as well as other transformations.