Core: Allow to configure custom thread pools

Ok, makes sense