Fix periodic tasks running over engine

 * Fix unit tests
 * Fix event model
 * Fix using engine module
 * Added sending signal to run workflow in events
 * Creating events when WB definition is uploaded

Change-Id: Ica7a5c0d0c367f3c7396ed1650753f1570f797b7