Added priority support to events
Merge pull request #43 from Raphfrk/event_conversion

Added priority support to events