Use pkg_sbuf_printf for the JSON preparation
Use pkg_sbuf_printf
Use pkg_sbuf_printf
Add three new pkg_printf() formats:

  %R repo path
  %V old version
  %u checksum

as requested by bapt.
Document new %R, %V and %u format codes.
Add tests for new pkg_printf() formats: %R, %V, %u