Change permalinks from longs to UUIDs.

Closes #41