added commands for controlling relays
merge from upstream relay
fixes so that code compiles on SAS hardware
Merge pull request #157 from ehsteve/master

Fixes so that code compiles on SAS hardware