capture/fileaction/motiondetector: remove the 1000/FPS delay because we are threads are event triggered now.
main: add a 5s delay in the main loop to lower CPU usage.