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

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

Do you need a try/except around this pop() too?