Make message expiry configurable

Simple change that allows for tuning how long the messages stick around..

Optional local.json config key `ttl` lets you control the time to live (in ms).