Clean up load_messages function
Add the ability to add locale strings in plugins
Add 'threadChanged' event