Add support for the PostStart event handler.

Don't do this with a switch. Make a factory that returns something that implements a common interface.