Add the detection_daemon in the engine

include the detection daemon directly in the engine iinstead of using a C program running as an other service.