Use new Lua module style

Creating modules using the `module()` function is deprecated.