refactoring + add route and service for agents
connect the agent to the app (cache and execute plugin on the agen + send to rabbit)