feat(swarm): add configuration options for config and secret revisions retention (#1652)