Add sidebar tree

This is an implementation of cusomizable sidebar tree. This patch keeps
existing sidebar and adds new option - show documents in sidebar as tree.
Merge branch 'rpg-sidebar-tree'