Run activated closures in groups.

First file descriptors, then timers, then asaps. This means, for example,
that a file descriptor event can trigger an asap, and that asap will
always run before the next select().