Use conventions when generating domain events

Conventions are now picked up from the AST and passed along as
configuration for the code-gen steps.