Removed init function.

open now creates a web socket object, attaches listeners and opens a connection.