Last open project is now saved to preferences file and restored on next launch.
Fixed optimization setting in release mode (was always disabled becuase the DebugTarget always disabled it regardless of the build type)
Fixed some elements were not rebuilt when changing from debug to release builds. This ws intended in the past (only those members that had changes had to be rebuilt). 

But now we should rebuild everything when switching modes, becuase the optimization setting will otherwise leave files optmized from the previous build that cannot be debugged properly. On the other hand, we only want to rebuild those files that have breakpoints, because they are the only ones that should not be optimized. Anyway, the user may want to see a variable in a non-optimized file, so it's good to rebuild everything just in case. 

This behavior could be controlled by a global setting, but for now, we play safe: builds are cleaned between changes no matter what.
Refactored configration static access to a singleton. Will use the instance in the global settings dialog through binding.
Checkpoint: global settings dialog implemented. Still need to persist properties in the preferences file.
Global settings values are stored in the preferences file.
Added code to honor the new global settings (the boolean ones).
BUG: Fixed a couple of sketch generation errors (line numbers). Transformed file after building in debug mode can be now displayed as a new file.
Editor.OpenContent files are now set as readonly and marked as not changed. Before, they were marked as normal files and detected as having changes, so before building, a saveFile dialog appeared for them.
Merged task-global-settings to main