UrlParser. Parse raw url string and make valid socket.io urls for handshake request, and for websockets connection.
Handles secure (https or wss) connections properly.
Use UrlParser for generating valid socket.io urls.