Add the `connect_cached.connected` callback.

It is only called for new connections, right after they connect. This is
because the `connected()` method is not called, for whatever reason.