Finally brought some structure into the organization of different
Lua-files and refactored most of the modules and some of the classes to
adhere to the new coding style.