Change websocket_req:new/1 to new/11

move a couple of util funs into websocket_req