pipicpowerd.c add WiFi uptime to statistics

The approximate WiFi uptime is counted and written to the optional
'pipicpowers.log' file.

Move 'atpwrdown' script execution earlier so that the network is hopefully
still up when the script is executed.