399397 - websocket-client needs better upgrade failure checks

+ Adding checks on response status code and Connection header (along
  with unit tests)