Fixes for handling socket error.
Rewrite reboot_node.
Google just added reboot support to the API, so use the API instead of SSH.