Instead of sending a mail by generating output on every execution
we track the state of setup we receive from the portal. Output
is only created whenever we have a state change. That also enables
us to create "resolve" messages when the state changes back to be
ok.
Introduces a new configuration option `stateFile`.