pipicpowed.c optionally write statistics when daemon exits

If the LOGSTATS is set in the configuration file the daemon writes start
and stop times to a separate statistics file 'pipicpowers.log'. The times
are in unix seconds. These are followed by minimum, average and maximum
voltage values followed by ambient temperature values if these are available.