Moved server and client code into a single file.
Added simple configuration file.
Trapping errors when accessing the PiGlow.