working on protocol and utility

- fix referenct counting for http client
- implement sender as ws_send()
- read data from stdin and pass to server