Fixes for addEventPort

I propose the patch in attachment for fixing the current (1.8.0) addEventPort
implementation. The main idea is that the event handlers are added during
addEventPort(), and not during TaskContext::start(). It slightly changes the
API of TaskContext, so it's food for 1.10.0.

Peter

AttachmentSize
fix-add-event-port.patch18.81 KB