Added priority support to event listeners.
Merge pull request #22 from frenck/priority-support

Added priority support to event listeners.