This should finish the work to make all globals to local variables. That allows LuaJIT to properly compile things by interning the references to the relevant parts (rather than looking up globals all the time which stops a trace).
all lua frontend files are now in the frontend/ directory. all old code is cleaned up.