Cleanup JS code

Instead of using ajax for shutdown point to a shutdown page (staying on the page seems illogical when the server is shutdown)
Have reboot use the new general ajax-confirm class.