Fixed bugs with html/line buffers and html/line streams

Correctly handling the broadcasting of events now.  :-D