Kobject refactoring cont. MR

Added Kobject for MR 
Cleaned up the teardown of MR and Hprocs 
Cleaned up task detach