Unify the approaches to handling steps and events in ep manager

Also, manage the saving of execution plan in plan manager instead of flow
manager, with better isolation of responsibilities.