Updated log viewer for CSP and redefined ws_connect to match rfc6454