Rework the agent to use cron instead of running as a daemon, first steps toward CentOS compat

Rework the agent to use cron instead of running as a daemon, first steps toward CentOS compat