Move SecurityManager to BaseKernel/IKernel