Use C99 single-line comments instead multi-line comments.
Include common/luajit/src/lua.h.
Move Lua instance from authd/main.c to authd/global.c.
Use global Lua for run() in the authd/main.c.
Rename lua_handlers_ref to lua_handlers in authd/main.c.