allow passing priority to registered events
Merge pull request #38 from jippi/feature/event-options

allow passing priority to registered events