Fixed most of issues and memory leak.
Improved Plugin system and Event system.
Added Scheduler.
Added Main and Engine classes.