fixed topic names used for pin io
added dns lookup for the broker host
added extra log code for debugging
wrapped some serial port debug with ifdef DEBUGs