Moving most Lua setup out of main.m