To enhance the ability for multiple developers contributing code and to hide some internal functions, the script.lua file should be split up and made into different modules. We could also start to use more local stuff (this would also shorten some calls).