Rework the ID system

Fixes #102 Verify that newbie IDs are safe