Add publish functions to event loop.  Also basic hotswap