page loader refactored loop detection

Checking for ancestors by node.
Correction on previous refactor
Merge branch 'master' of https://github.com/Heigvd/Wegas into pmg