This adds a tree view mode to the document list in the sidebar and enables it by default. Based on previous work by Pavel Roschin <roshin@scriptumplus.ru>, see #259