Capturing streams of serializable events from browsers