Add event creation library and implement in scheduler.

I get how it works now.  I'm trying to get rid of the public interface you invented just for this test.  One option is to implement an already defined public interface, such as EventInterface.