use UUIDs instead of counting

This improves the usability of basket in distributed environments, e. g.
when using a VCS like git to synchronize between multiple installations.