Add classloader metrics.
Switch to a mocking way of testing.
Merge pull request #511 from larrys/classloader-metrics

Classloader metrics