FILEMAN-72: Extract the tree code into a generic widget and move it to the XWiki platform
* Update tree usage due to recent changes in platform.