Implemented version negotiation, heartbeats, and hooks for authentication.