Implement reboot and software watchdog

Signed-off-by: Carlo Caione <carlo@caione.org>