Generate Event enum

This is a step towards completing systems support. See #3.