Reorg EventManager, now a class with static methods.
Compile with -Wall (must rerun toexec.sh)
Fix compilation errors
generation1 needs a little bit of love, moving to .cpp so compilation works.