Fix circula json See #181

I overwrote `toJSON` of `requires`, `usedBy` and `see` to resolve to an appropriate. `flat` object. 
Where possible I tried to maintain the `context` object. To resolve these nested object we can use the `byTypeAndName` view of the data.