nsqd: switch metadata to JSON and persist paused state
write to tmp and atomically rename