Add asserts making sure we're only called in the GUI thread. Add missing mutex locks.
Slowly the amount of cpp sources has been growing to the point where its just too much to store in the root of the project. I think they are more happy in a subdir as well, getting an elevated position for themselves.