Add prototype process API
Implement process API, update process structure, include pid in kernel thread structure to allow process resolution from curthread