Fix to use simple callbacks from components to manager, and events from manager to other part of the code.
also added throwing events in cocosthread.