Agent persistence.
persistence setup and fsm start bug.
Fixed agent set bug.
Default persistence flags.
persistence flags and defaults.