provide livelog via EventSource

Reformat some code