Implement the unique-id() function
Merge pull request #665 from xzyfer/wip/unique-id

Implement the unique-id() function