Full planning integration into master

Knowledgebase phase of project is complete!
Doesn't this sort of foreach call getPreconditions every loop?