Runs properly!

With all of the recent changes, kernel actually seems to do what it's
supposed to. Needs a lot more testing, but it looks good. Then we move
on to fixing the half-assed parts of the code, and finally, expansion.