web: Use a dialog for shutdown/reboot.

Fixes #653
Fixes #50