Implement 0MQ endpoints and document message classes.