Move persistence flag to st_state_t

I didn't notice the st_state_t struct before. It makes sense for it to be with all other state data.  This meant passing the entire state struct into serve.