Make kalite only restart if something changes

Since restarting kalite can be slow, moved it to a handler, so the service is only restarted if it's actually helpful to do so.