dictionary: Add ability to tell dictionary that a client disconnected, e.g., via Comet.on_disconnect.

This functionality is important as otherwise a dictionary client that sends no message will never detect disconnects.
index: Fix several index bugs.