has anyone rewritten this to implement the afore mentioned options?
1. Option to use Standby or Hibernate
2. Delay like NickFury mentioned. Wait 5 seconds. If power comes back within 5 seconds, cancel the action. Otherwise Standby or Hibernate.
3. Execute an app before going into Hibernate. This will be very useful since a lot of us want to disconnect USB devices and reconnect them upon resuming to fix the hibernation woes.
4. Execute an app upon resuming for reason mentioned in 3.