Add getHighlightedField and hasHighlightedFields to MessageResult.

Remove getHighlightRangesAsJson.

Needed for #819.