Setting time to live on topic and subscription to config value and Setti...

Issue #2049

Here's the diff.