Move event bus into core
Enhance thread controller
Remove duplication surrounding thread fragment
Removed some unneccesary conditionals
Fix tests and message analysis