Optimize CSS Export: extract similar rules into combining CSS block

Tests are pending… Comments are welcome.
This is prototyping CSSStyleRule, should we prefix the functions maybe to avoid clashes?