If there are no more events to be received from the node, treat that
as an "end of file" situation, instead of as an error. In other words,
do a normal shutdown and let a system manager restart the CI broker if
need be.
Still handle actual errors when receiving node events as errors.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Make BrokerEvent de-serializable so that we can store them as JSON in
the database in the persistent event queue.
Signed-off-by: Lars Wirzenius <liw@liw.fi>