Paving way for multithreading

Tons of work to implement a reactor model into the openbalance design.
Currently worker threads are created but not used