Add support for :has(), :host(), and :host-context().

See #1126
Deprecate the subject selector operator.

Closes #1126