Support sending websocket binary messages, close #1645
minor clean up