Add es6 dependency
Add promise support for connect and disconnect

Success cases have been implemented only atm.
Remove implicit connect on construction
Add specs for repeated connect and disconnect
Reject connect() promise when onclose is called before onopen
Reconnect automatically when connection is lost
Remove onerror handler

The error event is not really helpful since it does not contain any
more information than "error".