Added ws_connbuf type

Also: Is the connbuf type a singleton? If not, you need to pass the object itself as the first argument (also for the following functions).

The return type should change too, then.