Make persistent flag part of st_state_t

This means passing entire state struct into serve.