Event loop
- Integrate libevent
- Handle registration of children and call callbacks for them (can we reuse the libevent's events for that?)
- Some kind of „wait“ mode ‒ list events that must stop being pending or active to stop, while still executing the rest of events