Refine bootstrap protocol.

This adds some optimizations regarding PING/PONG distribution.
Prevent possible duplicate notification events.