Generalize event-to-wire-format encoding from JMS Message creation.
Add EventWaker utility class.