Improve daemon configuration options

Write and flock pidfile when running as root (e.g. daemon mode).
If pidfile exists, success depends on flock (with LOCK_EX). Error
out if we can't acquire exclusive lock.

Provide --user, --group and --pidfile command-line options.

Configuration file can now change verbosity level, but command-line
settings prevail, like for other settings.