MDL-27171 messages: implement new syntax in messages.php and update processing