Add Event Controller and EntityManager

Signed-off-by: Hui Zheng <fengyimzy@gmail.com>