CMS-2033 Create an event system for backend code. Added eventbus. Added tests.