Add metrics support

Codahale metrics support
Sonar related fixes