Added trace view for scripts.
Fixed synchronization between threads.
Fixed save and restore game.
Fixed scripts.
Completed edit tools.