Initial (compiles, some shitty code just to make it do so) re-write of Lua API