Compatibility with Coda Hale Metrics 3.0.0

  - ported to metrics 3.0 interfaces
  - factored out metric serialization
  - added tests
  - migrated to gradle
  - added checkstyle