register

Registers join/disconnect listeners for snapshot sync and cleanup.