add websocket specs and fix up some bogus websocket stream parsing code