Keep track of groupchat messages... fixes #240

by way of msgid attribute.