fix connect in local network
fix cherry pick issues
Fixed issue: impossible to reconnect

We test if the socket is not null and connected but not if it's closed. This problem was saw before and the method "isConnected()" from WebSocketConnection add it.

This issue was report (by inspire580i) on the original library: https://github.com/palmerc/SecureWebSockets/issues/5
Fixed NullPointerException

Occur when we want to disconnect by ourself when the library notify about a closing connection
Allow our URL to contains query parameters

By using message.getURI().getPath() we retrieve only the path without any query. In the current library these query parameters are just ignored.
This commit fix the problem and add the query after the path
Merge remote PR #1 (IP address for lan)

Conflicts:
	src/de/tavendo/autobahn/WebSocketWriter.java
Merge remote-tracking branch 'origin/pr/7'
Merge remote-tracking branch 'origin/pr/8'