Clean up the Lua API, make it luajit-only, no C