Lua works

All the Lua stuff works now.
Next is the mod stuff.