Add metrics timer tests and some refactoring.
Switch statsd clients.
Remove debug output.