Make res_all a static variable.

Also make the msgs resource config items a static array in the different
config parsers of the daemons and no longder some global variable that
is exported from the shared library. Jobdefs are now expanded using a
dedicated function in src/dird/dird_conf.c
Drop an unneeded global variable and make it local.
Remove old global variable.