Provide default config values in a lib script

It is good practice to provide reasonable defaults even if the
configuration file is missing. Sourcing the config-defaults before the
configuration file does this.
Add defaults for the init script
Extract common code to lib script
Inline configuration script
Remove unnecessary exit trap defusal
Replace hard-coded log paths with DEBUILDER_LOGDIR variable
Enhance configurability by adding new config variables