Did some more api and terminal cleanup
More work on the new lua VM. This is nowhere near compiling, but it's something