changed signature for mg_exec_lua_script(). fixed lua_error_handler()