removed unused (and ambiguous) definitions of active_thread and sched_threads in kernel_init.c
moved prototype for sched_register_cb() from C file to header
added documentation for sched.h
re-added the scheduler callback (the actual call was missing)