Added support for publishing persistent messages
Merged branch 'msgPersistencyBranch'