Switch to css4 style :not instead of !. Also added :matches support
which can be used for grouping. Unlike css4, it supports nesting.
Fix all the tests that are failing due to nth-child, and nth-last-child
changes. Also fix string escaping.