Implement support for numeric character references.

These can either be in the format `&#123;` for base 10 or `&#xABC` for base 16.