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

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

```settings.get("AGGREGATION_CACHE_SIZE", 10000)```

this is bitwise, so for example, 10000 | 5000 = 14232