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
Thanks Johann. Yeah it is better to have proper comments instead of the leaving IDE default.Currently this method is updated with the implementation.