Made ServiceBase use promise and future instead of condition (and forced sync)
Added a static self to CThread which can be used to identify the current threads ID