Fix ws read failure when using 16bit payload
Fix ws read failure when using 16bit payload

Also should use ntohs instead of htons when read from socket.

shyblue/crow,ipkn/crow,shyblue/crow,shyblue/crow,ipkn/crow,ipkn/crow