Moved json-serialization of events and ids to cqrslib