Ensure that the static selector regex doesn't match empty selectors.

This makes the #selector_sequence method properly return nil if it
can't parse a selector, even if that selector precedes a bracket.
Fix the output style for unknown directives.
Add an @at-root directive.
Add a script node for accessing the current selector.

This still needs tests, docs, and possibly some support functions.