Update index.js

Changed default ports to be 443 for SSL and 80 for non-SSL (they were switched). Passed the whole URL to the connection, since it needed both the host and the path. Updated the package by bumping the version number. Updated the README to make ws.connect()'s callback non-optional, since it wasn't optional (at least, not in my experience).
I haven't managed to reproduce the error yet. I've run this code exactly:
```javascript
'use strict'
var ws = require('./index')
ws.createServer().listen(8017)

var conn = ws.connect('ws://localhost:8017', function () {
	console.log("connected 1")
})
conn.on('connect', function () {
	console.log("connected 2")
})
```