nsqd: switch metadata to JSON and persist paused state