Move ItemsManager to a separate thread.
fix build
exit worker thread in destructor
unique_ptr some stuff, free resources, proper thread termination
fix warnings
Faster mod matching without regexes.
Remove unused includes/forward declarations from ItemsManager.