Added remaining message handler code to KDC.