A pure Lua uuid generator (modified from a Rackspace module)