Added implementation and test for SetAnalysisRoots.
Use *our* serialiser!
Use struct instead of class for event/notification data.
Add support for raising Analysis events.
Added tests for Analysis events.