Move string extraction to shared minify class

Strings are the same for both CSS & JS.
Improve CSS minifier, add some whitespace rules

Meanwhile also moved to use the same method JS does to
extract strings, which allows us to be more agressive on
stripping whitespace.