Don't attempt to reconnect if the websocket closed cleanly
self.open to open a new connection
Use wasClean instead of close code
Merge pull request #2 from SomeHats/allow-disconnect

Allow manual disconnect/reconnect