Events functionality improved and used. Some minor fixes in World and entity