Improve selection management in tree view

review1055003
Add support for invisible in tree view

review1057002
Fix session renew
Use toggle for toolbar menu
Add missing call to callback in update_selection
Fix value from Selection with relation when empty