made websocket client use java.net instead of java.nio (addresses #88,
#155, #167, #175, #177, #187) (changes not yet fully tested)