Since the introduction of the passwordless login for a fresh install,
people have been able to reboot/shutdown machines by realoding the page.
For fix this issue let's grant a one-time reboot/shutdown license using
sessions through the confirmation dialog.
While I'm here letschange it to try reach the httpd every 3 seconds after
reboot/shutdown and if that goes well redirect to '/'.