Add support for detecting whether the running user has permission to shutdown/restart the system, and enable/disable those options in the logout menu appropriately.