Introduce `WP_JSON_Resource` for accessing resources