Fix #974: Implement java.util.UUID

Re-implementation of java.util.UUID in Scala in order to be smoothly integrated with scala-js.
Same thing for the end of file.