make /package/foo?json return JSON template context as a JSON object

@rockbot:

`if (process.env.NODE_ENV === "dev" && "json" in request.query)`

rather than making `Object.keys` find all the keys in the object and then search for the index of a specific one, use `'json' in request.query` to determine if `request.query` has the property `'json'`.