Reuse Graphite connection and abstract out test helpers

Updates this pull https://github.com/etsy/statsd/pull/364 to be in line with the current code, and abstracts out the common test functions to avoid having to keep them in sync across many test files