CB-4910 Don't save id and name in config.json.

The values are never used, and can become out-of-date since the id &
name from config.xml are authorative.
CB-5763 Don't write out empty config.json files.