Preliminary work on object scripts, simplify msg_classes