Dialog is rejected when ESC is released

Emit the rejected signal automatically when ESC is released.
When it is emitted we also hide the dialog.

Issue: #17
Call power manager shutdown actions

Buttons are now implemented.

Issue: #13