Replace the UUID interface with a string typedef.

Also renamed registeredUUID to canonicalUUID.

Fixes #38.
make it explicit that this is a regex as per [[!ECMAScript]].