I modified my script slightly since it was sending several notification emails for every power event. I still have 2 outstanding issues that I may need help with though.
1) When power goes out, the Raspi is shut down correctly and reboots correctly. However, when shutting down, it appears to kill HG too quickly for an email notification to be sent out. I'm not sure how to address this since apcupsd sends the system shutdown command and stops all programs on it's own. So maybe I can add a wait statement in the system kill script somehow. Also, when the system comes back up I don't know what event to use to send a notification.
2) I don't have a clue how to make a widget. I checked the HG widget tool out, but between json and html, I'm stuck before I start. I only really want to display a few items that I believe are available either directly in apcaccess or by logging events that HG already sees. But, actually creating the widget to display this basic text is not something I'm clear about.