Refactor how unreliable messages are handled

Now, for unreliable messages except room messages, we ignore the older ones
comparing their ids with messages of the same type.  For room messages, we
compare message ids with the same tag. if the tag is 0, then all messages are
accepted, whatever the order.

Debug messages was removed.