[layouts] Assign and free elements to a category with tree_manager
[clean] streamline code and add some comments
Change return of functions members::assign and members::free
[layouts] list also direct childs of current level with tree_manager