Asset Client and BAM event publisher re fractor

Instead of building the string, wouldn't it be better if we had the definition in a File which we read and get the content. It would be more maintainable and readable. Also, you have again defined 'str' as globals which is not needed to be so, which prevents from being garbage collected even after the method execution.