Replaced old style pointers with the more reliable references
Moved to virtual destructors
Commented out KarmaJob usermode check
Added ExitHandler class and KarmaSource entities