First step of the events refactor: a single event() callback
Clean nodes information on start, and make sure the solution node is visible when finishing
Solution is painted green when finishing the algorithm
Merge branch 'events-refactor' into develop