Give an app access to it's own eventloop to make possible to use it

(for example for timers).

We agreed to include this until a better solution will be conceived and implemented.