Add reboot_and_wait task

This task helps rebooting a machine and waiting until it is back again
and ready to run more ssh commands.