kernel: Implement thread_spawn() and add simple scheduling

Signed-off-by: Pawel Dziepak <pdziepak@quarnos.org>