MT#7705 - Rework logging for API calls. Improve log messages in Message.pm