Revert "Added support for publishing persistent messages"

This reverts commit 4cd9d33975c8a1df5543b6bf1e41c051375cbe31.
Added support for publishing persistent messages