Class to generate MongoIDs in pure PHP (no mongo driver needed)