Backport Fix #974: Implement java.util.UUID.

Except UUID.nameUUIDFromBytes, because that relies on computing
an MD5 or SHA-1 hash.

Backport: Move test: scala.scalajs.{testsuite => test}.javalib

(cherry picked from commit b1e239d2678214396f464509cae7e58c97385460)