Trace

Still requires a few fixes, but the main part is done.
I still need a way to get thr by id.
So something like kt_thr_t *thrs[] is still required.
It's possible to embed this functionality into kt_cache_t, but I'm not sure if that's a good idea.