split out checkshutdown checks into SafePowerManager
Fix variable name
Extra logging
add script.py which can be run as a script to perform a safe shutdown.  Update extension points in addon.xml
remove unused imports
Merge branch 'safepowermanager'