io: make FlushingWriter an http.Hijacker

Related to #853.