Implement new event priority option for event handlers.
Event handlers with priorities are called in following order:
1) HIGHEST
2) HIGH
3) NORMAL
4) LOW
5) LOWEST
Event handlers which do not set the value "eventPriority" are
automatically assigned to NORMAL event priority.