Implemented session management, reimplemented task display to use QTreeWidget.

is this consistent with all our other projects?