Tiny modification to change the class for a couple of logging statements
In a number of places, ensured that new Threads and Runnables would have
an XTraceContext passed to them.
Also make sure that when new threads are started, they log an event to
the effect.
Also make sure that in event handlers, event.joinContext is called, even
if it's a redundant call
Finally, made sure that in any places where events are added to queues,
contexts are correctly cleared and restored.
Fixed some of the event leak going on with resource localization, caused
because localization messages are queued and sent as heartbeats