Added event registry, made EntityEvent provide a list of the events it can support.