Threaded event system

Change-Id: I2591cd673dd83d34d25ec6d3191ee8e7c1a079b8