got proper streaming working!
major cleanup. frontend goodness.

 - send events to client
 - properly prune connections when they die
 - added frontend handlers for events.
 - lots of other cleanup, removal of debugging code.