web: Use a dialog for shutdown/reboot.

Fixes #653