[messages] rename class to msg_class

makes it possible to use the python parser using xmlobject since class is a reserved word.

If I didn't miss anything it should still be possible to replay old logs and stuff like that...