Moved Lua scripts into their own files, finally