Changed MessageID generation mechanism to use Java UUID utility

The old mechanism did not guarantee unique IDs and sometimes caused trouble!