Add event-service code to xa-common