Initial implementation of JAX-RS 2 metrics.