Changed Broker to export the class directly.
Generate unique ID for sending messages.