Added support for combining only stylesheets with the same media types.

Also refactored asset classes a fair bit.