Lower mem and faster CSS cascading. Fixes #555 and #553. New test took 16.85s before and 0.033s after.
Merge pull request #559 from amro/css_memory_perf_fix

Lower mem and faster CSS cascading. Fixes #555 and #553.