Constructive rereading of Artin-Schreier theory Cohomological Hall algebras, semicanonical bases and Donaldson-Thomas invariants for 2-dimensional Calabi-Yau categories (with an appendix by Ben Davison) 