Support a JSON serialization format to dump and load layout definitions.

This is a prerequisite for over-the-wire node reconfigurations, which are coming up soon.