Initial support for storing enum values as links to a global enumerations table.

Uses foreign key constraints to make sure everything stays consistent.

Switched a couple of enums over to storing their values this way, with an eye
to having the JSON schemas pull their values from the enumerations table.