Implemented power button based shutdown and tidyup via dbus

Could be tidier, but it works.