Update JAX-RS quickstarts

* change the resource code to have a single URL serving both XML and
  JSON representations of the same resource.
* use JAX-RS Client + JSON-P API