Initial changes for supporting the gui in Windows

This is the intial checkin it sets up two things.
First, it fixes a web socket issue that the web interface's index has
with windows due to the way $_SERVER['REMOTE_ADRS'] works.
Second, starts work on the new batch file that will be used if on
Windows.