logger and profiler added

Adding the first draft of the logger and the profiler to the kernel. No
testing has been done to verify that everything is working as expected.