Implemented session management, reimplemented task display to use QTreeWidget.

why is this indentation so weird...