Added possibility to use callbacks instead of event system for messages

This should be more efficient with spammy chats since less event object
creations and less use of the event system itself.