adds global(operatingStateFile="fn") and related handling (see doc for details). closes https://github.com/rsyslog/rsyslog/issues/1721