Reworked many parts of directory monitoring
Tried to improve some of the logic to make dir_monitor work

I'm starting to think that re designing the whole thing might be a good idea...
Mostly fixed problems with execution

Still need to fix how the threadpool works. I may need to refactor things quite a bit.