Make sure /work/view-annotation returns valid JSON

We need to wrap the annotation up in an object, beacuse a string is not valid
JSON. I've introduced the TopLevel type class to remind me of this.