Split handleGetTrust in two functions and fix its synchronization:
- The second function will be needed for deploying event-notifications
- We should synchronize upon the WOT while pulling data out the trust object. This is not necessary in the second function because event-notifications passes out clones of the Trust objects. Also it is not necessary to fix the master branch: There is no GetTrust FCP function there yet.
- Add TODO of possible optimization which I have filed a bug about
Extract function sendChangeNotification():
- What it does will be needed in sendTrustChangedNotification / sendScoreChangedNotification as well so its good to extract it