agent: Adding configs for retry_join
agent: Adding CLI flags
agent: Supporting retry join
agent: Testing retry join