Reworked 2/3 of PathNodeGen (up to OnAutogeneratePathClick).

Still needs a lot of work, but at least it compiles now again.
Some statistics were MiA (see Issue #5 for details).