Prepare JSON response for consumption from w2c-monitor (#313757)
- Always return object with "info" property and optional "data" and "error" properties
- Include API version and config revids in "info" property
- Make general and path-specific errors include "name" and "message" properties
- Add "score" properties to "data", "target" and "result" objects
- Convert undefined field output into empty array