Apply various optimizations (caching, jpg/png optimizers, jsmin...)