Cleaned up redundant input code.
Improved locking in scheduler. Added "user_abort" flag that causes thread to abort as soon as it completes a user api call.
Fixed bugs in proc_end: Killing non-existent process causes BSOD, deadlock occurs when attempting to end non-current or multithreaded process.