Support semantic highlighting of proof state

This isn't the Right Way, which would be to send all the structural
information, but it's straightforwardly achievable right now and an
improvement on what's there.