Add metrics for all JAX-RS resource endpoints.

This exposes metrics to the internal metrics registry.