enable the code to dinamically load tree menu nodes for plugins (needs testing)
Looks like I forgot to commit this and caused some breakage.