Fix ApplicationEvent constructor

ApplicationEvent constructor should take an ApplicationEventInit dictionary
in argument, not an Application.
Merge pull request #32 from cdumez/ApplicationEvent_constructor

Fix ApplicationEvent constructor.