moved save_config to a new function, changed save_config_on_stop to boolean

* moved save_config to a new function
* changed save_config_on_stop to boolean
* set default of save_config_on_stop to false
* changed condition to use ocf_is_true