term_raw: allow state save/restore
plugins/shutdown: fix ~kill and ~kill-restart; remove some debug things
mark2: make 'stop' and 'kill' send to the server rather than signalling it