Implemented session management, reimplemented task display to use QTreeWidget.

My latest commit should have removed it I think.