Remove threading, prepare for wpf

Signed-off-by: Nepetalactone <tobias.meusburger@gmx.net>