This function really should be called `makeView` or something and only thing it should do is create a views for existing windows.
There should be also controller code somewhere separate from any views or models that wires two together.

Please make click reporter independent of other things, more or less the way we talked during work week:

```js
const { emit } = require("sdk/system/events")
const onClick = curry(id => emit("jetpack-menuitem-click", id))
```