switch/cray - add state save/restore logic

Previously slurmctld would restart without information about
allocated ports. This add save/restore logic which will work
for graceful shutdowns. More work is needed in the case of
slurmctld crashes.