add --force option

Sort of similar with --no-scripts, but runs the scripts and ignores their
return values.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
initialize structs to zero rather than memset() them

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
move chstate_thread to run time configuration struct

Better there than in global scope.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
the err() does not need new line at the end of message

Signed-off-by: Sami Kerola <kerolasa@iki.fi>