Config comes before logging since logging needs config
Constants needs log stuff
Couple of wtfs and removed taskconfig object