enevtengine to have support for executing event handler on main thread or background thread. added abstraction for logger.