Pulls out messages from mjwm.cpp into a separate file messages.cpp