fix hinting on non-ascii characters

HintUtils requires acorn in order to use isIdentifierChar().
Refactor Tern messages ids out from HintUtils into MessageId to remove the tern-worker's dependency on HintUtils.