Fix/planning element trees

Moves scoped nested set out of issue and into a module that is in turn included in WorkPackages.

This fixes: https://www.openproject.org/issues/1520