Add a way to set default values for stdout/err_logfile_maxbytes; also includes #3 and #5

Apologies for the slightly muddled commit as we needed all of these features and I didn't have the foresight to branch them separately.