Testing Simulator and some minor fixes

Re-wrote the testing simulator to be command line based (vs graphical) so that it can run within a shell.

Allowed the simulator to choose a directory to which it reads / writes the GPIO and one wire devices.  

When running the simulator type 
 ?h for the help menu
 ?list for the commands you can run
 ?h <command> for help on a specific command

The path is set to /mock by default.  This is in place of the /sys directory that is normally written to - so one wire devices would be under /mock/bus/w1/devices/...

Configuration is saved between runs.