Port of https://github.com/pnegri/uuid-js to ActionScript.