Add some stuff to the kernel, predict and fix bug.

Added code to kernel.init(), created kernel.krnLog(), and predicted and
fixed a bug where SysCall.loadAPI() would not be able to find an API.