Added the syscalls/helpers.h file to templatize common kobject syscall operations. Also moved most syscall implementations to using process::current() and thread::current() instead of asking the scheduler.
The endpoint object adds synchronous IPC. Also added the wait-type of 'object' to threads.