Server-side UUID generation, fixes #182.