Moved parse/serialize to object Message, as they really belong there.