Implement the Bazel event protocol

To make IDE integration easier it would be nice if we could support https://docs.bazel.build/versions/master/build-event-protocol.html.

This would give us a set of events that hopefully are already supported by IDEs to make IDE user interfaces to control buildstream nicer.