revise server (HomeSeer) URL and script name
improve logging of internal info, error, debug and other messages
improved error handling to deal with server connection closing abruptly