Start on the code to write NetCDF restart files. The NetCDF functionality should
all be extracted into a different class.