replace the uuid package with our own implementation

Replace the uuid package with our own implementation. This reduces the
compiled JS size by 376k.