Added XML serialization for all XML files

Much quicker than before.
There is still an issue with the resources that are not loaded even if I've not touched them.
SQL files are now under the DB directory so that we can change them without having to change the app (resources).
Same goes for default settings, now are in XML files in the Settings folder.
Optimized code creating a function for Cocotus change for Settings folder to avoid repetition of code.
Fixed last unsafe cross thread action