Feature/minimal threadpool

@DWvanGeest please review