Code complete UUID implementation. Needs more testing.