Preliminary port of kernel.lua

Not working just yet

Add gitignore