Moves TreeControllerBase to separate file and moves the CreateTreeNode methods to that controller so they can be used in events handlers.