Add functions for converting commands to/from X10 library numbers
Minor improvement and define pins