Improve delayed message handling.

Non-delayed messages are hashed as well, so
that they will not be displayed again if they
are delayed later. Also, delayed messages are labeled
by room, to avoid ambiguity when switching channels.