Implemented session management, reimplemented task display to use QTreeWidget.

uh, why is this named like that?