Implemented session management, reimplemented task display to use QTreeWidget.

well, prof said to call it the "logic" component or the "controller" or something.