Refactor configuration to a more Ruby way.

Class variables (`@@`) are very rarely used within Ruby. It's an odd situation with the singleton pattern, but I think the method I've used here is an improvement. Happy for debate though :)

I also renamed `MetricHandler` to `Handler` as part of this, as the module and class having the same name was confusing it.