Clean up for windows socket workarounds
Clean up for windows socket workarounds

* Ensure receiveMessage() exits if the socket has been disconnected
* Remove some commented out code from connectToServer()

JoshChristie/displaz,JoshChristie/displaz,JoshChristie/displaz,JoshChristie/displaz,JoshChristie/displaz