Basic event dispatching (with priorities)