Better management of reset in the lua controller. Fixed bug in the Lua editor that was crashing when errors carrying no info on line and file are returned. Prevented unsaved files from being executed.