fix(agent): agent initialization

Wait for the agent to successfully push its state to
the Registry before starting normal operation. This
prevents the watchers from losing events during startup.
refactor(agent): remove duplicated code
test(functional): Fix cluster member naming

Creating multiple members would arbitrarily pad
the numbering as each member was created. Tracking
the initial member count rather than counting the
number of members in each iteration fixes this.