add LRU cache and max size setting to relay to fix memory leak

fix for https://github.com/graphite-project/carbon/issues/185

OK, makes sense.