Agent : Make the capabilities dynamic, no need to restart agent and better implementation.

When a jid is added as admin, we will rebuild capabilities. No agent
restart is needed anymore.