Added eventing to runtime core.
Organized unit tests, added new test for eventing.