Use UUID instead of Integer for local identifiers.

SWORD is going to need globally unique labels.