Originally committed to SVN as r1182.
Fixes to error reporting from Lua, now the error messages are more concise, and instead of exploding with an error message box, the script is just marked as "not loaded" and the actual error as its description. Originally committed to SVN as r936.