Create command and event handler objects for handling events.