Add an event buffer for debugging

Use nrepl-log-events to control logging.