Messaging model changes and MQTT integration

This PR contains the following:
1.Messaging model changes and MQTT updates
2.Puppet master update with python agent
Log and throw anti pattern