Updated gateway and added code for IO node containing buttons and/or relays.