M1453-Script-Refactor: Moved devtools related functionality into devtools.rs from script_tasks.rs