campaignd: Implement read-only operation mode

This can be enabled in the server config by setting read_only="yes".
The default value is 'no'.