Fixed instrumentation

The instrument function for instrumenting a ring server was broken.  It was throwing a ClassCastException, presumably because the signatures for the metric functions had changed.  The default registry is also no longer accessible, so the metric registry is now passed into the instrument function.