Added reboot functionality

...and localising some constants into gpio module.