Add json_ensure_response

This ensures that a value is either a WP_JSON_ResponseInterface object, or a WP_Error, by wrapping any other value in a WP_JSON_Response instance.

Fixes #151.