Got CSS to a reasonable state. Refactored parsing code.