Clean up streaming HTTP event handler, which should fix crash-bugs with GLib. Forgot to do this so far because my libevent code let me get away with it.