PHP port of the System.Guid class in .NET mostly ported from the Mono implementation