Implemented session management, reimplemented task display to use QTreeWidget.