Simplify yelib/qt/layout; improve task system; add functions to ClassTab