Event handling overhaul.

* Send clears when messages are dismissed in XenCenter.
* Prevent sending of duplicate events.
* Tweak message priority to event severity mapping.
* Fix timezone handling on message timestamps.

Fixes ZEN-11100 and ZEN-11101.