support for pidfiles
adding the log stream to files_preserve
removed cruft
using a dict with defaults for daemon