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

New test took 16.85s before and 0.033s after according to Xcode.