Task's session extraction refactoring, pt. 1
Task's session extraction refactoring, pt. 2
Task's session extraction refactoring, pt. 3
Task's session extraction refactoring, pt. 4: plugins run ok.
Task's session extraction refactoring, pt. 5: build is ok.