Add IDs to `Messages`

They will be used for getting buffer messages starting after a certain
received message.