Fixes #466. Add backend support for shutdown and reboot via api commands...

... of the same names.